SmallSpriteDecoration

A SpriteDecoration that uses a 10x10 footprint

Author

fzzyhmstrs

Since

0.6.0

Constructors

Link copied to clipboard
constructor(tex: TextureSet)

A small decoration using a texture set

constructor(id: Identifier)

A small decoration with one texture used in all circumstances

Properties

Link copied to clipboard
open override val h: Int = 16
Link copied to clipboard
open override val w: Int = 16

Functions

Link copied to clipboard
open override fun renderDecoration(context: DrawContext, x: Int, y: Int, delta: Float, enabled: Boolean, selected: Boolean)

Renders the decoration. Notably, this provides active and selected context for rendering different things based on those states.

Link copied to clipboard
open override fun textureSet(): TextureSet

TextureSet this decoration will render from